package com.qyl.deguru.service.impl;

import java.util.List;

import com.qyl.deguru.dao.PicDao;
import com.qyl.deguru.dao.impl.PicDaoImpl;
import com.qyl.deguru.dto.Picturcarousel;
import com.qyl.deguru.service.PicService;
/*
 * 轮播管理业务层实现类
 */
public class PicServiceImpl implements PicService {

	PicDao picDao = new PicDaoImpl();
	
	@Override
	public void addPic(Picturcarousel pic) {
		picDao.addPic(pic);
		
	}

	@Override
	public int delPicById(int pid) {
		
		return picDao.delPicById(pid);
	}

	@Override
	public List<Picturcarousel> getPics() {
		
		return picDao.getPics();
	}

}
